<?php
$site=$_POST['site'];
$name=$_POST['name'];
$tag=$_POST['tag'];

include'../../base/.db/connect.php';

$table=$site.'_plugins';
$data=array('name'=>$name,'tag'=>$tag);
include'../../base/.db/insert/data.php';

$table=$site.'_'.$tag.'_articles';
$definition='id int not null auto_increment primary key,title varchar(56) not null,content blob,unique(title)';
include'../../base/.db/create/tablefromdefinition.php';

header("Location: ../../../index2.php?site=$site&plugin=article&page=article&tag=$tag");
?>